using System;
using ebcpatterns.infrastructure;

namespace app.demo
{
    public interface INeedsInjection
    {
    }

    public class NeedsInjection : INeedsInjection, IDependsOn<IIndependent>
    {
        public NeedsInjection() {
            Console.WriteLine("NeedsInjection is instantiated...");
        }

        public void Inject(IIndependent independent) {
            Console.WriteLine("NeedsInjection got the independent...");
        }
    }
}